#ifndef __BLACK_PLAYER_H__
#define __BLACK_PLAYER_H__

#include "Player.hpp"
#include "ChessBoard.hpp"
#include "BlackChess.hpp"

class BlackPlayer : public Player
{
public:
	BlackPlayer(const string& name) :Player(name, "black") {}
	bool placeChess(int x, int y)
	{
		ChessBoard* chessBoard = ChessBoard::getChessBoard();
		bool canPlace = chessBoard->isVaildPos(x, y);
		if (canPlace)
		{
			chessBoard->placeChess(new BlackChess(x, y));
			return true;
		}
		return false;
	}
};
#endif // !__BLACK_PLAYER_H__
